def dfs(num):
    """

    :param num:
    :return: 选，不选
    """
    if num > 2000: return 1, 1
    son = dfs(2 * num)
    return son[1], sum(son)


ans = 1
for i in range(1, 2000, 2):
    ans = sum(dfs(i)) * ans
    ans %= int(1e9 + 7)
print(ans)
